package com.campus.commons.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 轮播页面类型表
 * </p>
 *
 * @author Rin
 * @since 2021-01-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="WxIndexImageType对象", description="轮播页面类型表")
public class WxIndexImageType implements Serializable {
    public static Map<Integer, WxIndexImageType> IndexTypes = new HashMap();
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
@NotBlank
@Length(min = 2,max = 20)
    private String name;

    @TableField("createTime")
    private Date createTime;


}
